package com.tanglongan.designPattern.dp09_decorator.demo01;

public class SausageDecorator extends BattercakeDecorator {

    public SausageDecorator(Battercake battercake) {
        super(battercake);
    }

    @Override
    protected void doSomething() {
        System.out.println("加了一个香肠");
    }

    @Override
    protected String getMsg() {
        return super.getMsg() + ">>1根香肠";
    }

    @Override
    protected int getPrice() {
        return super.getPrice() + 2;
    }
}
